<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%--
  Created by IntelliJ IDEA.
  User: W_YEMINLONG
  Date: 2022/1/28
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="com.Auth_Copy01" %>
<%@ page import="java.lang.String" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>

<%
    String filepath = request.getParameter("filepath");
%>
<%
    Auth_Copy01 AC = new Auth_Copy01();
    AC.setFilepath(filepath);
    AC.Copy();
    String s1 = judgment(filepath);
%>
<%=s1%>
<%!
    String judgment(String filepath) {
        if (filepath != "") {
            String s1 = "<div><h1>success</h1></div>";
            return s1;
        } else {
            String s2 = "<div><h1>fail</h1><p>请检查文件路径 or 重启游览器</p></div>";
            return s2;
        }
    }
%>


</body>
</html>
